﻿// 简易矢量图生成模型.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
#include <iostream>
#include <graphics.h>
#include <conio.h>
#include <vector>
#include <commdlg.h>
#include "CShape.h"
#include"文件管理模块.h"
#include"智能指针.hpp"
#include"界面外观模块.h"
#include"鼠标操作模块.h"
#include"界面逻辑模块.h"

//测试打开文件操作
void test07() {
	//HWND test = initgraph(1024, 1024);

	TCHAR szBuffer[MAX_PATH] = { 0 };
	OPENFILENAME ofn = { 0 };
	ofn.lStructSize = sizeof(ofn);
	ofn.hwndOwner = NULL;
	ofn.lpstrFilter = _T("Bin文件(*.bin)\0*.bin\0");//要选择的文件后缀   
	ofn.lpstrInitialDir = _T("C:\\Users\\15091\\Desktop\\VStudio工程文件\\简易矢量图生成模型\\存放矢量图二进制文件");//默认的文件路径   
	ofn.lpstrFile = szBuffer;//存放文件的缓冲区   
	ofn.nMaxFile = sizeof(szBuffer) / sizeof(*szBuffer);
	ofn.nFilterIndex = 0;
	ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST | OFN_EXPLORER;//标志如果是多选要加上OFN_ALLOWMULTISELECT  
	BOOL bSel = GetOpenFileName(&ofn);

	closegraph();
}


int main()
{
	//Window win(960, 650, EX_SHOWCONSOLE);
	{
		CShape* p11 = new CRectangle();
		AutoPtr<CShape> p = nullptr;
	}
	ManageMent m;
	m.run();
	
	return 0;
}
